package com.flyco.modules.oms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 饿了么订单表
 * @Author: flyco
 * @Date:   2021-08-10
 * @Version: V1.0
 */
@Data
@TableName("oms_eleme_retail_order")
@ApiModel(value="oms_eleme_retail_order对象", description="饿了么订单表")
public class OmsElemeRetailOrder implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**订单编号*/
	@TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "订单编号")
	private String id;
	/**订单来源*/
    @ApiModelProperty(value = "订单来源")
	private String orderSourceTag;
	/**饿了么订单编号*/
    @ApiModelProperty(value = "饿了么订单编号")
	private String elemeId;
	/**城市*/
    @ApiModelProperty(value = "城市")
	private String provinceCity;
	/**商户名称*/
    @ApiModelProperty(value = "商户名称")
	private String shopName;
	/**商户ID*/
    @ApiModelProperty(value = "商户ID")
	private Long shopId;
	/**配送方式*/
    @ApiModelProperty(value = "配送方式")
	private String deliveryType;
	/**订单业务类型(0外卖单,1到店自取订单,2企业到店买单)*/
    @ApiModelProperty(value = "订单业务类型(0外卖订单,1自提订单,2企业到店买单)")
	private Integer orderBusinessType;
	/**订单状态*/
    @ApiModelProperty(value = "订单状态")
	private String status;
	/**退款状态*/
    @ApiModelProperty(value = "退款状态")
	private String refundStatus;
	/**订单无效理由*/
    @ApiModelProperty(value = "订单无效理由")
	private String cancelOrderDescription;
	/**下单时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下单时间")
	private Date createdAt;
	/**预计送达时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预计送达时间")
	private Date deliverTime;
	/**商户接单时间*/
    @ApiModelProperty(value = "商户接单时间")
	private String shopReceiveTime;
	/**订单完成时间*/
    @ApiModelProperty(value = "订单完成时间")
	private String completionTime;
	/**订单总金额*/
    @ApiModelProperty(value = "订单总金额")
	private java.math.BigDecimal originalPrice;
	/**用户实付金额*/
    @ApiModelProperty(value = "用户实付金额")
	private java.math.BigDecimal totalPrice;
	/**商户应收金额*/
    @ApiModelProperty(value = "商户应收金额")
	private java.math.BigDecimal income;
	/**平台佣金*/
    @ApiModelProperty(value = "平台佣金")
	private java.math.BigDecimal serviceFee;
	/**索赔状态*/
    @ApiModelProperty(value = "索赔状态")
	private String claimStatus;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
